/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.bs.Beans;

import java.io.Serializable;
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;
import javax.xml.bind.annotation.XmlRootElement;

/**
 *
 * @author Bone
 */
@Entity
@Table(name = "ecf_tipo_pagamento")
@XmlRootElement
@NamedQueries({
    @NamedQuery(name = "EcfTipoPagamento.findAll", query = "SELECT e FROM EcfTipoPagamento e")})
public class EcfTipoPagamento implements Serializable {
    private static final long serialVersionUID = 1L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Basic(optional = false)
    @Column(nullable = false)
    private Integer id;
    @Column(length = 3)
    private String codigo;
    @Column(length = 20)
    private String descricao;
    private Character tef;
    @Column(name = "IMPRIME_VINCULADO")
    private Character imprimeVinculado;
    @Column(name = "PERMITE_TROCO")
    private Character permiteTroco;
    @Column(name = "TEF_TIPO_GP")
    private Character tefTipoGp;
    @Column(name = "GERA_PARCELAS")
    private Character geraParcelas;

    public EcfTipoPagamento() {
    }

    public EcfTipoPagamento(Integer id) {
        this.id = id;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getCodigo() {
        return codigo;
    }

    public void setCodigo(String codigo) {
        this.codigo = codigo;
    }

    public String getDescricao() {
        return descricao;
    }

    public void setDescricao(String descricao) {
        this.descricao = descricao;
    }

    public Character getTef() {
        return tef;
    }

    public void setTef(Character tef) {
        this.tef = tef;
    }

    public Character getImprimeVinculado() {
        return imprimeVinculado;
    }

    public void setImprimeVinculado(Character imprimeVinculado) {
        this.imprimeVinculado = imprimeVinculado;
    }

    public Character getPermiteTroco() {
        return permiteTroco;
    }

    public void setPermiteTroco(Character permiteTroco) {
        this.permiteTroco = permiteTroco;
    }

    public Character getTefTipoGp() {
        return tefTipoGp;
    }

    public void setTefTipoGp(Character tefTipoGp) {
        this.tefTipoGp = tefTipoGp;
    }

    public Character getGeraParcelas() {
        return geraParcelas;
    }

    public void setGeraParcelas(Character geraParcelas) {
        this.geraParcelas = geraParcelas;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (id != null ? id.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof EcfTipoPagamento)) {
            return false;
        }
        EcfTipoPagamento other = (EcfTipoPagamento) object;
        if ((this.id == null && other.id != null) || (this.id != null && !this.id.equals(other.id))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "com.bs.Beans.EcfTipoPagamento[ id=" + id + " ]";
    }
    
}
